<%@page import="com.youthHostel.pojo.leasecontract"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>房屋添加</title>
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/add.css">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/lib/bp.css">
	<style type="text/css">
		.breadcrumb{
			margin-bottom:0;
		    padding-bottom: 20px;
		}
		.breadcrumb,.breadcrumb li{
			font-size:20px;
			background: white;
			line-height: 50px;
		}
		.breadcrumb li a:hover{
			text-decoration: underline;
		}
		.form-control{
			height: auto;
		}
		.form-group{
			overflow: hidden;
			margin-bottom: 30px;
		}
		.sub{
			width:300px;
			margin-left:150px;
			display: flex;
			justify-content: space-around;
		}
		.btn{
			width: 80px;
		}
		.form-group span{
			line-height: 34px;
			color: #f00;
			font-size: 12px;
		}
		.no_padd_top{
			padding-top:0;
			padding-bottom: 0
		}
	</style>
</head>
<body style="background: #f5f5f5">
	
	<div class="header">
		<h1><a href="#">青年公寓项目</a></h1>
		<div class="user">
			<a href="#">${user}用户</a>
			<a href="${pageContext.request.contextPath}/user/exit">退出</a>
		</div>
	</div>
	<div style="margin: 25px 150px;">
		<div style="border-radius:5px;">
			<ol class="breadcrumb">
				<li><a href="${pageContext.request.contextPath}/house/huoseList?index=1">公寓管理</a></li>
				<li><a href="${pageContext.request.contextPath}/house/huoseList?index=1">租赁合同</a></li>
				<li class="active">修改租赁合同</li>
			</ol>
			<div style="padding: 0 150px;overflow: hidden;background: white;">
					<!-- onsubmit="subForm()" -->
				<form action="${pageContext.request.contextPath}/lc/updateLcMes" method="post" 
					  class="form-horizontal">
					  <input type="hidden" value="${lessees.lc_id}" name="lc_id">
					 <div class="form-group">
					    <label class="col-sm-2 control-label">房屋编号</label >
					    <div class="col-sm-5">
					    	<input class="form-control"  placeholder="房屋编号" disabled="disabled"
					    	value="${lessees.lc_contract_number}">
					    </div>
					  </div>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">合同日期</label>
					    <div class="col-sm-5">
					    	<input class="form-control" disabled="disabled" placeholder="租户编号" name="lc_contract_date"
value="<%=new SimpleDateFormat("yyyy年MM月dd日").format(((leasecontract)request.getAttribute("lessees")).getLc_contract_date())%>" >
					    </div>
					  </div>
					  <!-- new SimpleDateFormat().format( -->
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">租赁开始时间</label>
					    <div class="col-sm-5">
					    	<input class="form-control" name="bgtime"  disabled="disabled"
value="<%=new SimpleDateFormat("yyyy年MM月dd日").format(((leasecontract)request.getAttribute("lessees")).getLc_contract_end_date())%>" >
					    </div>
					  </div>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">租赁结束时间</label>
					    <div class="col-sm-5">
					    	<input class="form-control" name="endTime" 
value="<%=new SimpleDateFormat("yyyy年MM月dd日").format(((leasecontract)request.getAttribute("lessees")).getLc_contract_end_date())%>" >
					    </div>
					  </div>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">房租总额</label>
					    <div class="col-sm-5">
					    	<input class="form-control" name="lc_total_rent" placeholder="房租总额" 
					    		value="${lessees.lc_total_rent }">
					    </div>
					  </div>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">付款方式</label>
					    <div class="col-sm-5">
					    	<select name="lc_pay_way" style="width: 100px;height: 25px;">
					    		<option value="0" ${lessees.lc_pay_way=='0'?'selected':'' }>月付
					    		<option value="1" ${lessees.lc_pay_way=='1'?'selected':'' }>半年付
					    		<option value="2" ${lessees.lc_pay_way=='2'?'selected':'' }>年付
					    		<option value="3" ${lessees.lc_pay_way=='3'?'selected':'' }>季付
					    	</select>
					    </div>
					  </div>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">押金</label>
					    <div class="col-sm-5">
					    	<input class="form-control" name="lc_deposit" placeholder="押金" 
					    		value="${lessees.lc_deposit }">
					    </div>
					  </div>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">付款期数</label>
					    <div class="col-sm-5">
					    	<input class="form-control" name="lc_period_payment" placeholder="付款期数" 
					    		value="${lessees.lc_period_payment }">
					    </div>
					  </div>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">合同签署人</label>
					    <div class="col-sm-5">
					    	<input class="form-control" name="lc_contract_signer" placeholder="合同签署人" 
					    		value="${lessees.lc_contract_signer }">
					    </div>
					  </div>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">合同状态</label>
					    <label class=" radio-inline" style="margin-left: 15px;">
					    	<input type="radio" name="lc_contract_state" value="0" 
					    		${lessees.lc_contract_state=='0'?'checked':'' }>已生效
					    </label >
					    <label  class=" radio-inline">
				    		<input type="radio" name="lc_contract_state" value="1" 
				    			${lessees.lc_contract_state=='1'?'checked':'' }>已失效
					    </label >
					  </div>
					  <div class="sub" >
					 		<input type="submit" value="提交" class="btn btn-info">
					 		<input type="button" value="取消" class="btn btn-info" onclick="window.history.back();">
					  </div>
				</form>
				<div class="footer">
					智游教育 ©2018 河南智游臻龙教育科技有限公司
				</div>
			</div>
		</div>
		
	</div>
	<!-- 表单验证待完成 -->
	<script type="text/javascript">
	
	</script>
</body>
</html>